import { Entity, PrimaryGeneratedColumn, OneToMany, Column } from 'typeorm'
import { Account } from './account.entity'

@Entity()
export class AccountLevel {
  @PrimaryGeneratedColumn()
  id: number

  @OneToMany(type => Account, account => account.level)
  accounts: Account[]

  @Column()
  title: string
}
